package org.jeecgframework.web.service;
import java.io.Serializable;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.jeecgframework.core.common.service.CommonService;
import org.jeecgframework.web.system.pojo.base.CbsAppKnowledgeEntity;

public interface CbsAppKnowledgeServiceI extends CommonService{
	
 	public <T> void delete(T entity);
 	
 	public <T> Serializable save(T entity);
 	
 	public <T> void saveOrUpdate(T entity);
 	
 	/**
	 * 默认按钮-sql增强-新增操作
	 * @param id
	 * @return
	 */
 	public boolean doAddSql(CbsAppKnowledgeEntity t);
 	/**
	 * 默认按钮-sql增强-更新操作
	 * @param id
	 * @return
	 */
 	public boolean doUpdateSql(CbsAppKnowledgeEntity t);
 	/**
	 * 默认按钮-sql增强-删除操作
	 * @param id
	 * @return
	 */
 	public boolean doDelSql(CbsAppKnowledgeEntity t);

	/**@author xiul
	 * 2016-8-5 下午3:24:16
	 * Description 
	 * @param req
	 * @return
	 */
	public List<Map<String, Object>> queryAppKnowledge(HttpServletRequest req);

	/**@author xiul
	 * 2016-8-14 下午3:26:06
	 * Description 根据sql查询知识库。不用getEnityt 或 get 方法
	 * @param id
	 */
	public Map<String, Object> queryKnowledgeById(String id);
}
